package com.qf.springboot.demoredis.service.Impl;

import com.qf.springboot.demoredis.manager.RedisManager;
import com.qf.springboot.demoredis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: Adrian
 * @Date: 2020/3/9 18:19
 * @Description:
 */
@Service
public class RedisServiceImpl implements RedisService {
    @Autowired
    private RedisManager redisManager;
    @Override
    public void add(String key, String value) {
        redisManager.addValueKey(key,value);
    }

    @Override
    public String getValueForKey(String key) {
        return redisManager.getValueForKey(key);
    }
}
